import axiosInstance from '../request';
/***************************************************************   估价   *******************************************************************************/

/**
 * 平台获取估价
 */
export const RequestPlatformValuation = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/guidePrice/getGuidePrice',
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 平台获取估价修改
 */
export const RequestPlatformValuationAmend = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/guidePrice/save',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 搜索估价
 */
export const RequestfindHistoryPrice = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/collectionPriceHistory/findHistoryPrice',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 获取所有拆解厂估价设置
 */
export const RequestCompaniesGetList = (fomdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/getList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: fomdata,
  });
};
/**
 * 删除估价
 */
export const RequestCollectionPriceDeleteList = (ids) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/collectionPrice/deleteList?ids=' + ids,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 商铺获取估价
 */
export const RequestShopValuation = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/collectionPrice/getCollectionPrice/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 获取所有车辆类型
 */
export const RequestCollectionPriceCarType = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/collectionPrice/getCarType',
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 获取收车异常列表
 */
export const RequestEstimateInfoList = (fomdata) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/estimateInfo/list',
    headers: {
      'Content-Type': 'application/json',
    },
    data: fomdata,
  });
};
/**
 * 处理收车异常
 */
export const RequestEstimateInfoDealInfo = (fomdata) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/estimateInfo/dealInfo',
    headers: {
      'Content-Type': 'application/json',
    },
    data: fomdata,
  });
};
/**
 * 添加估价设置
 */
export const RequestCollectionPriceSave = (fomdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/collectionPrice/save',
    headers: {
      'Content-Type': 'application/json',
    },
    data: fomdata,
  });
};
/**
 * 商铺获取估价
 */
export const RequestShopValuationSetting = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/collectionPrice/applyPrice',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};

/**
 * 估价审核列表
 */
export const RequestValuationAuditList = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/priceApply/list',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 估价审核详情
 */
export const RequestValuationAuditListDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/priceApply/getApplyInfoById/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};

/**
 *估价审核    /companies/getCompanyUnActivity   post
 */
export const RequestauditPriceApplyAudit = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/priceApply/auditPriceApply',
    data: formdata,
  });
};
/***************************************************************   缺件扣款   *******************************************************************************/

/**
 *获取缺件扣款    /companies/getCompanyUnActivity   post
 */
export const RequestMissingPartDeduction = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/missingPartDeduction/getByNode/' + id,
  });
};
/**
 *添加缺件扣款    /companies/getCompanyUnActivity   post
 */
export const RequestMissingPartDeductionAdd = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/missingPartDeduction/save',
    data: formdata,
  });
};
/***************************************************************   文章   *******************************************************************************/
/**
 * 获取所有文章
 */
export const RequestAllArticle = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/article/pageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 获取所有分类
 */
export const RequestAllTypes = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/article/getTypes',
    headers: {
      'Content-Type': 'application/json',
    },
  });
};

/**
 * 文章图片上传
 */
export const RequestArticlePhotoUpload = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/article/uploadArticleImg',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data: formdata,
  });
};

/**
 * 文章上传
 */
export const RequestArticleUpload = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/article/save',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 文章删除
 */
export const RequestArticleDel = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/article/deleteList?ids',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    data: formdata,
  });
};

// import { data } from 'uview-ui/libs/mixin/mixin'

/***************************************************************   商品   *******************************************************************************/

/**
 * 条件查询
 */

export const RequestGoodsSearch = (fomdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/product/pageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: fomdata,
  });
};
/**
 * 条件查询
 */

export const RequestShipingFeeSetting = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shippingFeeSetting/getShopShippingSetting/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};

/**
 * 查询订单不同状态的数量
 */
export const RequestGoodsStatusNum = (shopId) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/product/getStatusCount/' + shopId,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 获取商品分类
 */
export const RequestGoodSort = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/productType/getTree',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  });
};
/**
 * 添加商品
 */
export const RequestAddGoods = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/product/saveProductWithImgs',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/**
 * 批量删除商品
 */
export const RequestDelGoods = (formimgs) => {
  return axiosInstance({
    method: 'POST',
    url: '/shoppingmall/product/batchDelete',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/**
 * 批量上架
 */
export const RequestOnSaleGoods = (formimgs) => {
  return axiosInstance({
    method: 'POST',
    url: '/shoppingmall/product/batchGrounding',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/**
 * 批量上架
 */
export const RequestDownGoods = (formimgs) => {
  return axiosInstance({
    method: 'POST',
    url: '/shoppingmall/product/batchWithdraw',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};

/***************************************************************   店铺首页   *******************************************************************************/

export const RequestShopHomepage = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shop/findById/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
export const RequestUploadInvoiceImage = (formimgs) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/invoice/uploadInvoiceImage',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data: formimgs,
  });
};
/**
 * 查询订单不同状态的数量
 */
export const RequestShopHomepageStatus = (shopId) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/afterSale/getStatusCount/' + shopId,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};

/***************************************************************   商品装修   *******************************************************************************/

/**
 * 条件查询
 */
export const RequestGoodDecoration = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/productDecoration/getDecorationDetail/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 从素材中心添加主图
 */
export const RequestGoodMaterialMainImgs = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/productDecoration/uploadMainImgsFromPics',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 从添本地加主图
 */
export const RequestGoodMainImgs = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/productDecoration/uploadMainImgs',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 删除本地主图
 */
export const RequestGoodMainImgsDel = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/productDecoration/removeMainImg',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 添加本地详情图
 */
export const RequestGoodDetailImgs = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/productDecoration/uploadDetailImgs',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 从素材中心添加详情图
 */
export const RequestGoodMaterialDetailImgs = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/productDecoration/uploadDetailImgsFromPics',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 删除详情
 */
export const RequestGoodDetailImgsDel = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/productDecoration/removeDetailImg',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 添加素材图
 */
export const RequestGoodMaterialImgs = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/productDecoration/uploadPics',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 添加素材图
 */
export const RequestGoodMaterialImgsDel = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/product/deleteimgs?imgs=' + id,
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};

/***************************************************************   识别   *******************************************************************************/

/**
 * 修改商户信息
 */
// 识别资质证书
export const Licence = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/register/recognizeLicence',
    data: formData,
  });
};
// 识别身份证
export const idCardRecognition = (formData) => {
  return axiosInstance({
    url: '/shoppingmall/register/recognizeIdCard',
    method: 'post',
    data: formData,
  });
};
/***************************************************************   商户信息   *******************************************************************************/
/**
 * 获取商户数据统计
 */
export const RequestShopDataMes = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shop/getStatistics',
  });
};
/**
 * 商户信息
 */
export const RequestShopMes = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shop/findById',
  });
};
/**
 * 删除商户图片
 */
export const RequestDelShopPhoto = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shopPic/deleteHeadImg/' + id,
  });
};
/**
 * 修改商户信息
 */
export const RequestEditShop = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/update',
    data: formData,
  });
};

/**
 * 商户入驻获取图片地址
 */
export const RequestPayAccountUploadQual = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/pay/payAccount/uploadQual',
    data: formData,
  });
};

/**
 * 商户入驻提交审核
 */
export const RequestRegisterMerchant = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/pay/payAccount/registerMerchant',
    data: formData,
  });
};
/**
 * 获取店铺支付认证状态
 */
export const RequestAuthStatusAndSignUrl = (shopId) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shop/getAuthStatusAndSignUrl/' + shopId,
  });
};

/***************************************************************   商户综合管理   *******************************************************************************/
/**
 * 获取平台所有的订单信息
 */
export const RequestSynthesizeOrder = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/list',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formData,
  });
};
/**
 * 获取平台所有的售后信息
 */

export const RequestSynthesizeAftersale = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/afterSale/list',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formData,
  });
};

/**
 * 获取平台所有的商品信息
 */

export const RequestSynthesizeProduct = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/product/list',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formData,
  });
};

/***************************************************************   店铺   *******************************************************************************/

/**
 * 获取所有店铺信息
 */
export const RequestAllShop = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shop/list',
  });
};

/**
 * 店铺信息修改
 */
export const RequestStoreAmend = (id, status) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shop/updateStatus',
    params: {
      shopId: id,
      status: status,
      empId: empId,
    },
  });
};
/**
 * 店铺审核
 */
export const RequestStoreShopAudit = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/register/shopAudit',
    data: formdata,
  });
};
/**
 * 店铺单个删除
 */
export const RequestShopDEl = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/shop/' + id,
  });
};
/**
 * 店铺批量删除
 */
export const RequestShopDElAll = (ids) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/batchDelete',
    headers: {
      'Content-Type': 'application/json',
    },
    data: ids,
  });
};
/**
 * 店铺条件查询
 */
export const RequestShopInquire = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/pageList',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};

/***************************************************************   平台用户   *******************************************************************************/
/**
 * 拆解厂白名单列表
 */
export const RequestDisassembleList = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/manageWhiteUserList/getTestWhiteCompany',
  });
};
/**
 * 拆解厂添加白名单
 */
export const RequestAddDisassemble = (node) => {
  return axiosInstance({
    method: 'post',
    url: `/shoppingmall/manageWhiteUserList/addTestCompany?node=${node}`,
  });
};
/**
 * 拆解厂移除白名单
 */
export const RequestDeleteDisassemble = () => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/manageWhiteUserList/removeTestWhiteCompany',
  });
};
export const RequestPlatformUser = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/getUserPageList',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/**
 * 添加白名单
 */
export const RequestAddUserToWhitelist = (userIds) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/manageWhiteUserList/add?userIds=' + userIds,
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 查看白名单
 */
export const RequestGetUserToWhitelist = (userIds) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/manageWhiteUserList/list',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 移除白名单
 */
export const RequestRemoveUserFromWhitelist = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/manageWhiteUserList/remove/' + id,
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};

/**
 *获取给用户发送的所有信息
 */
export const RequestSendUserMes = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/siteMessage/getUserMessage',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/**
 * 查看用户信息
 */
export const LookUserMes = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/user/getAllUserInfo/' + id,
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 给用户发送消息
 */
export const SendMesToUser = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/siteMessage/batchPostMsg',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/***************************************************************   商户用户   *******************************************************************************/
export const RequestShopUser = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/getFocusUsers',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/***************************************************************   分销   *******************************************************************************/
/**
 * 获取平台所有分销用户
 */
export const RequestDistribution = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/agent/getPageList',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};
/**
 * 查看当前分销用户
 */
export const RequestLookDistribution = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/agent/getStaticInfoById/' + id,
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/***************************************************************   消息模板   *******************************************************************************/
/**
 * 获取所有消息模板
 */
export const RequestPlatformMessage = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/messageTemplate/pageList',
    data: formimgs,
  });
};
/**
 * 修改消息模板内容
 */
export const RequestPlatformMessageEdit = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/messageTemplate/save',
    data: formimgs,
  });
};

/**
 * 修改模板状态
 */
export const EditTemplateStatus = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/messageTemplate/updateStatus/' + id,
  });
};
/**
 * 删除模板
 */
export const deleteTemplate = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/messageTemplate/deleteList',
    data: formimgs,
  });
};
/**
 * 删除模板
 */
// export const deleteTemplate = formimgs => {
//     return axiosInstance({
//         method: 'post',
//         url: '/shoppingmall/messageTemplate/deleteList',
//         data: formimgs,
//     })
// }
/**
 * 删除模板
 */
// export const deleteTemplate = formimgs => {
//     return axiosInstance({
//         method: 'post',
//         url: '/shoppingmall/messageTemplate/deleteList',
//         data: formimgs,
//     })
// }
/**
 * 添加消息模板
 */
export const PlatformMessageAdd = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/messageTemplate/save',
    data: formimgs,
  });
};
/**
 * 获取平台给商户发送的消息列表
 */
export const RequestPlatformToShop = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shopMessage/getShopMessage',
    data: formimgs,
  });
};
/**
 * 平台查看所有商户给用户发的信息
 */
export const RequestAllShopToUser = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/siteMessage/getUserMessage',
    data: formimgs,
  });
};
/**
 * 平台给商户发送消息
 */
export const RequestPlatformToShopMes = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shopMessage/sendMessageToShop',
    data: formimgs,
  });
};
/**
 * 商户获取平台发送的消息
 */
export const RequestShopGetMes = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shopMessage/getShopMessage',
    data: formimgs,
  });
};
/**
 * 商户阅读平台发送的消息
 */
export const RequestShopReadMes = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shopMessage/readMessage/' + id,
  });
};
/**
 * 商户一键阅读平台发送的消息
 */
export const RequestShopAllReadMes = (shopid) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shopMessage/readAll/' + shopid,
  });
};
/**
 * 商户批量删除平台发送的消息
 */
export const RequestShopDelAllMes = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shopMessage/deleteBatch',
    data: formimgs,
  });
};

/**
 * 根据推送类型获取模板
 */
export const RequesttemplateIds = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/messageTemplate/getByType/' + id,
  });
};
/***************************************************************   平台设置   *******************************************************************************/
/**
 * 获取平台数据统计
 */
export const RequestPlateformData = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shoppingInfo/getData',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 获取所有设置信息
 */
export const RequestAllSetting = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/platformSetting/list',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 修改时限设置
 * 修改设置信息
 */
export const RequestSettingEdit = (formdata) => {
  return axiosInstance({
    method: 'POST',
    url: '/shoppingmall/platformSetting/save',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};

/**
 * 获取售后原因
 */
export const RequestAllCause = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/afterReason/getList',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};

/**
 * 修改售后原因
 */
export const RequestAllCauseEdit = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/afterReason/save',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};

/**
 * 获取比例设置
 */
export const RequestScaleSetting = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/proportionSetting/list',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 添加比例设置
 */
export const RequestAddScaleSetting = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/proportionSetting/save',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/***************************************************************   商户设置   *******************************************************************************/
/**
 * 获取所有设置信息
 */
export const RequestAllShopSetting = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shopSetting/findByShopId/' + id,
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 修改
 */
export const RequestShopTransactionEdit = (formdata) => {
  return axiosInstance({
    method: 'POST',
    url: '/shoppingmall/shopSetting/save',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 修改物流
 */
export const RequestShopFeeSetting = (formdata) => {
  return axiosInstance({
    method: 'POST',
    url: '/shoppingmall/shippingFeeSetting/save',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};

/**
 * 删除物流
 */
export const RequestShopFeeSettingDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/shippingFeeSetting/' + id,
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};

/***************************************************************   订单   *******************************************************************************/

/**
 * 查询订单信息
 */
export const RequestOrderOutPutOrderExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/outPutOrderExcel',
    data,
    responseType: 'blob',
  });
};
/**
 * 查询订单信息
 */
export const RequestOrderAll = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/order/list',
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 查询订单不同状态的数量
 */
export const RequestOrderStatusNum = (shopId) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/order/getOrderStatusCount/' + shopId,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 查询订单信息
 */
export const RequestOrderMes = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/pageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 修改订单收货人信息
 */
export const RequestUpdateOrderAddress = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/userOrder/updateOrderAddress',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 订单批量发货
 */
export const RequestOrderAllDeliver = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/consignment',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 订单发货
 */
export const RequestOrderDeliver = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/consignmentOne',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 查看订单
 */
export const RequestOrderLook = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/order/getOrderDetail/' + id,
  });
};
/**
 * 订单物流信息
 */
export const RequestDepponTraceByOrderSn = (orderSn) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/user/getDepponTraceByOrderSn/' + orderSn,
  });
};
/**
 * 添加订单属性
 */
export const RequestOrderAddNote = (note, id) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/addNote?note=' + note + '&id=' + id,
  });
};
/**
 * 修改订单价格
 */
export const RequestOrderPrice = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/updatePrice',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 发送站内信
 */
export const RequestSendSiteMes = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/sendSiteMessage',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 发送短信
 */
export const RequestSendSMS = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/sendSMS',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 关闭订单
 */
export const RequestOrderClose = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/closeOrder',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};

/**
 * 关闭订单
 */
export const RequestOrderOperation = (orderId) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/order/getOrderOperateLog/' + orderId,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/***************************************************************   投诉   *******************************************************************************/

/**
 * 投诉用户
 */
export const RequestComplaintShop = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/complaint/complainShop',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    data: formdata,
  });
};
/**
 * 查看店铺投诉列表
 */
export const RequestComplaintGetlistlimit = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/complaint/getPageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};

/**
 * 商城查看处理详情
 */
export const RequestComplaintGetDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/complaint/getDetail/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 处理商城投诉
 */
export const RequestComplaintFinishDeal = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/complaint/finishDeal',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 商城查看收车投诉列表
 */
export const RequestTrailComplaintGetDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/driverComplaint/getDetail/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};

/**
 * 查看收车投诉列表
 */
export const RequestTrailComplaintGetlistlimit = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/driverComplaint/getPageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 查看收车投诉详情
 */
export const RequestDriverComplaintDeal = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/driverComplaint/deal/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 处理收车投诉
 */
export const RequestDriverComplaintFinishDeal = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/driverComplaint/finishDeal',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/***************************************************************   申诉   *******************************************************************************/
/**
 * 申诉列表
 */
export const RequestAppealGetPageList = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/appeal/getPageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 店铺申诉
 */
export const RequestAppealSave = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/appeal/save',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 申诉开始处理
 */
export const RequestAppealStartDeal = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/appeal/startDeal/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 申诉查看详情
 */
export const RequestAppealGetDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/appeal/getDetail/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 申诉结束处理
 */
export const RequestAppealDealAppeal = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/appeal/dealAppeal',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/***************************************************************   意见反馈   *******************************************************************************/

/**
 * 获取意见反馈
 */
export const RequestfFeedBackGetlistlimit = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/feedBack/getlistlimit',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 开始处理
 */
export const RequestComplaintDeal = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/complaint/deal/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/***************************************************************   评价   *******************************************************************************/

/**
 * 获取所有评价
 */
export const RequestOrderComment = () => {
  return axiosInstance({
    method: 'GET',
    url: '/shoppingmall/orderComment/list',
  });
};
/**
 * 评价详情
 */
export const RequestOrderGetDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/orderComment/getDetail/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 评价精选
 */
export const RequestOrderHandpick = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/orderComment/setFeaturedComment',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 评价搜索
 */
export const RequestOrderSearch = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/orderComment/getPageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 删除回复
 */
export const RequestCommentDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/orderComment/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 删除回复
 */
export const RequestReplyDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/replyComment/' + id,
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json', // 添加请求头属性
    },
  });
};
/**
 * 隐藏回复
 */
export const RequestReplyConceal = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/orderComment/hideReplyComment',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formdata,
  });
};
/**
 * 商家回复
 */
export const RequestOrderReplay = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/orderComment/shopReply',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};

/***************************************************************   发票   *******************************************************************************/

/**
 * 查询订单不同状态的数量
 */
export const RequestInvoiceStatus = (shopId) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/invoice/getStatusCount/' + shopId,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 获取所有发票信息
 */
export const RequestInvoiceList = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/invoice/list',
  });
};
/**
 * 发票搜索
 */
export const RequestInvoicesearch = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/invoice/getPageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 上传发票
 */
export const RequestInvoiceUpload = (formimgs) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/invoice/uploadInvoiceImage',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formimgs,
  });
};

/***************************************************************   优惠券   *******************************************************************************/

/**
 * 添加优惠券
 */
export const RequestPreferential = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/preferential/save',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 查询优惠券
 */
export const RequestPreferentialGetlistlimit = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/preferential/getPageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 删除优惠券
 */
export const RequestPreferentialDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/preferential/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/***************************************************************   售后   *******************************************************************************/
/**
 * 获取所有售后详情
 */
export const RequestAfterSaleDetal = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/afterSale/getDetail/' + id,
  });
};
/**
 * 售后信息条件搜索
 */
export const RequestAfterSaleSearch = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/afterSale/getPageList',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 售后改变状态
 */
export const RequestAfterSaleStatus = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/afterSale/auditAfterSale',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 退款
 */
export const RequestRefundToUser = (sn) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/afterSale/refundToUser/' + sn,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 售后发货
 */
export const RequestAfterSaleDeliver = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/order/consignment',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};
/**
 * 售后商家发货
 */
export const RequestSendGoodsToUser = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/afterSale/sendGoodsToUser',
    headers: {
      'Content-Type': 'application/json',
    },
    data: formdata,
  });
};

/**
 * 根据分页查询商品
 */
export const RequestPageGoods = (currentpage, pagesize) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/product/getlistlimit',
    data: {
      currentpage: currentpage,
      pagesize: pagesize,
    },
  });
};
/**
 * 获取单个商品
 */
export const RequestGoods = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/product/' + id,
    data: {
      id: id,
    },
  });
};
/**
 * 修改商品
 */
export const RequestGoodsAmend = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/product/updateProduct',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data: formData,
  });
};
/**
 * 删除商品
 */
export const RequestDeleteGoods = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/shoppingmall/product/' + id,
  });
};

/**
 *识别oe码		 /shoppingmall/recognize/oeCode 	get
 */
export const RequestRecognizeOeCode = (code) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/recognize/oeCode?oeCode=' + code,
  });
};
/**
 * 根据OECodeh和epc获取商品列表
 */
export const RequestOeCodeAndEpc = (oeCode, epc) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/recognize/oeCodeAndEpc?oeCode=' + oeCode + '&epc=' + epc,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  });
};
/**
 * 预估运费
 */
export const RequestEstimate = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/deppon/estimatePrice',
    data: formData,
  });
};
/**
 * 删除图片
 */
export const RequestDeletePhoto = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/product/deleteimgs' + '?imgs=' + id,
  });
};
// export const shan1 = formData => {
//     return axiosInstance({
//         method: 'post',
//         url: '/test/fileObject',
//         headers: {
//             'Content-Type': 'multipart/form-data',
//             Accept: 'application/json', // 添加请求头属性
//         },
//         data: formData,
//     })
// }
/**
 *获取登录人员形象/person/{id}  GET                           ///////////////////////////////////////////////////个人信息
 */
export const RequestPersonDetail = (id) => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/person/' + id,
  });
};
/*
 *保存登录人员信息/person/save  post
 */
export const RequestPersonSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/person/save',
    data,
  });
};
/**
 *修改erp密码/loginAccount/updatePassword post                           ///////////////////////////////////////////////////个人信息
 */
export const RequestLoginAccountUpdatePassword = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/loginAccount/updatePassword',
    data,
  });
};
/**
 *忘记密码  /loginAccount/forgetPassword post                           ///////////////////////////////////////////////////个人信息
 */
export const RequestLoginAccountForgetPassword = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/loginAccount/forgetPassword',
    data,
  });
};
/**
 *获取验证码  /loginAccount/getValidatedCode get                           ///////////////////////////////////////////////////个人信息
 */
export const RequestLoginAccountGetValidatedCode = (phone) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/loginAccount/getValidatedCode?phone=' + phone,
  });
};
/**
 *验证手机号  /loginAccount/validateOldMobile get                           ///////////////////////////////////////////////////个人信息
 */
export const RequestLoginAccountValidateOldMobile = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/loginAccount/validateOldMobile',
    data,
  });
};
/**
 *查询公司所有对象/erp/companies/getlistlimit   post
 */
export const RequestCompaniesGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/getlistlimit',
    data,
  });
};
/**
 *公司审核    /companies/getCompanyUnActivity   post
 */
export const RequestCompaniesGetCompanyUnActivity = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/getCompanyUnActivity',
    data,
  });
};
/**
 *公司上传合同    /companies/uploadContract   post
 */
export const RequestCompaniesUploadContract = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/uploadContract',
    data,
  });
};
// /**
//  *公司申请激活接口   /companies/companyActivateAudit   post
//  */
// export const RequestCompaniesCompanyActivateAudit = data => {
//     return axiosInstance({
//         method: 'post',
//         url: '/erp/companies/companyActivateAudit',
//         data,
//     })
// }
/**
 *查询公司所有对象/erp/companies/list   GET
 */
export const RequestCompaniesList = (node) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/' + node,
    // data: formData,
  });
};
export const RequestCompaniesSave = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/save?account_type=COMPANY&parentId=0',
    data: formData,
  });
};
/**
 *查询公司所有对象/erp/companies/getlistlimit   post
 */
export const RequestCompaniesUpdate = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/update',
    data,
  });
};
/**
 *获取带图片的公司信息/erp/companies/{id}   GET
 */
export const RequestCompaniesImg = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/companies' + id,
  });
};
/**
 *获取带图片的公司信息/companyImages/uploadimgs   POST
 */
export const RequestcompanyImagesUploadimgs = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies',
    data,
  });
};
/**
 *公司管理--公司权限/companies/setCompanyFunctions   POST
 */
export const RequestCompaniesSetCompanyFunctions = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/setCompanyFunctions',
    data,
  });
};
/**
 *根据传入的分页信息查询/erp/companies/getlistlimit   GET 
export const RequestcompanyGetlistlimit = (currentpage, pagesize) => {
    return axiosInstance({
        method: 'get',
        url: '/erp/companies/getlistlimit',
        data: {
            currentpage: currentpage,
            pagesize: pagesize,
        },
    })
}
/**
 *删除公司单个对象/erp/companies/{id}   DELETE
 */
export const RequestcompaniesId = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/companies/' + id,
  });
};
/**
 *删除公司单个对象/erp/node/getNodeTree   GET
 */
export const RequestnodegetNodeTree = () => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/node/getNodeTree',
  });
};
/**
 * 公司删除图片单张/erp/companyImages/{id}  DELETE
 */
export const RequestCompanyImagesImgDel = (id) => {
  return axiosInstance({
    method: 'DELETE',
    url: '/erp/companyImages/deleteImg?id=' + id,
  });
};
/**
 *公司审核/erp/companies/companyActivateAudit  GET
 */
export const RequestCompaniesCompanyActivateAudit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/companyActivateAudit',
    data,
  });
};
/**
 *激活公司接口    /erp/companies/companyActivate  GET
 */
export const RequestCompaniesCompanyActivate = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/companyActivate',
    data,
  });
};
/**
 * 系统功能设置--添加功能/erp/sysFunction/save   POST
 */
export const RequestSysFunctionSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysFunction/save',
    data,
  });
};
/**
 * 系统功能设置--菜单列表/erp/sysFunction/gettree   GET
 */
export const RequestSysFunctionGettree = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysFunction/gettree',
  });
};
/**
 * 系统功能设置--获取所有菜单列表/erp/sysFunction/getAllFunctionTree   GET
 */
export const RequestSysFunctionGetAllFunctionTree = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysFunction/getAllFunctionTree',
  });
};
/**
 * 系统功能设置--删除单个菜单/erp/sysFunction/{id}   delete
 */
export const RequestSysFunctionDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/sysFunction/' + id,
  });
};
/**
 * 系统功能设置--获取单个对象/erp/sysFunction/{id}   get
 */
export const RequestSysFunctionDelHq = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysFunction/' + id,
  });
};
/**
 * 系统功能设置--修改单个菜单/erp/sysFunction/update   POST
 */
export const RequestSysFunctionUpdate = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysFunction/update',
    data,
  });
};
/**
 * 系统功能设置--获取所有角色列表/erp/sysRole/list   GET
 */
export const RequestSysRoleList = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysRole/list',
    data,
  });
};
/**
 * 系统功能设置--分页获取所有角色列表/erp/sysRole/getlistlimit   post
 */
export const RequestSysRoleGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysRole/getlistlimit',
    data,
  });
};
/**
 * 系统功能设置--获取角色权限设置树   /erp/sysFunction/getUniFunction   get
 */
export const RequestSysFunctionGetUniFunction = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysFunction/getUniFunction',
  });
};
/**
 * 系统功能设置--删除单个角色/erp/sysRole/{id}   DELETE
 */
export const RequestSysRoleDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/sysRole/' + id,
  });
};

/**
 * 系统功能设置--子类型管辖关系--列表获取/erp/nodeAllowedChildrenType/list  GET
 */
export const RequestNodeAllowedChildrenTypeList = () => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/nodeAllowedChildrenType/list',
  });
};
/**
 * 系统功能设置--子类型管辖关系--列表获取/erp/nodeAllowedChildrenType/save  POST
 */
export const RequestNodeAllowedChildrenTypeSave = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/nodeAllowedChildrenType/save',
    data,
  });
};
/**
 * * 系统功能设置--子类型管辖关系--删除/erp/nodeAllowedChildrenType/{id}  delete
 */
export const RequestNodeAllowedChildrenTypeDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/nodeAllowedChildrenType/' + id,
  });
};
/**
 * * 系统功能设置--子类型管辖关系--批量删除/erp/nodeAllowedChildrenType/deleteList  post
 */
export const RequestNodeAllowedChildrenTypepostList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/nodeAllowedChildrenType/deleteList',
    data,
  });
};
/**
 * * 系统功能设置--子类型管辖关系--分页获取数据/erp/nodeAllowedChildrenType/getlistlimit  get
 */
export const RequestNodeAllowedChildrenTypeGetlistlimit = (currentPage, pageSize) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/nodeAllowedChildrenType/getlistlimit?currentpage=' + currentPage + '&pagesize=' + pageSize,
  });
};
/**
 * 组织机构与权限管理--添加有权限员工/erp/employee/save   POST
 */
export const Requestemployeesave = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/employee/save',
    data,
  });
};
/**http://192.168.1.41:9092/cyr/erp/employee/173
 * 组织机构与权限管理--根据员工id获取员工岗位/erp/employee/save   get
 */
export const RequestemployeeId = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/' + id,
  });
};
/**
 * 组织机构与权限管理--根据部门去找部门下的员工   /erp/employee/getEmployeeByDept?nodeId=   get
 */
export const RequestemployeeGetEmployeeByDept = (nodeId) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/getEmployeeByDept?nodeId=' + nodeId,
  });
};
/**
 * 组织机构与权限管理--添加不需要登录的员工/erp/employee/saveEmployeeWithoutAccount   POST
 */
export const RequestemployeeSaveEmployeeWithoutAccount = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/employee/saveEmployeeWithoutAccount',
    data,
  });
};
/**
 * 组织机构与权限管理--员工数据列表/erp/employee/list   get
 */
export const Requestemployeelist = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/list',
    data,
  });
};
/**
 * 组织机构与权限管理--员工数据列表/erp/employee/getlistlimit   post
 */
export const RequestemployeeGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/employee/getlistlimit',
    data,
  });
};
/**
 * 组织机构与权限管理--修改员工信息/erp/employee/update   post
 */
export const RequestemployeeUpdate = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/employee/update',
    data,
  });
};
/**
 * 组织机构与权限管理--删除单个员工/erp/employee/{id}   get
 */
export const RequestEmployeeDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/employee/' + id,
  });
};
/**
 * 组织机构与权限管理--删除单个员工/erp/employee/{id}   get
 */
export const RequestEmployee = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/' + id,
  });
};
/**
 * 组织机构与权限管理--部门列表/erp/node/getlistlimit   post
 */
export const RequestNodeGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/node/getlistlimit',
    data,
  });
};
/**
 * 组织机构与权限管理--部门列表            GET
 * http://192.168.1.41:9092/cyr/erp/node/getDeptTree?id=263
 */
export const RequestNodeGetDeptTree = (company) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/node/getDeptTree?id=' + company,
  });
};
/**
 * 组织机构与权限管理--部门列表树状/erp/node/list   GET
 */
export const RequestNodeList = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/node/list',
  });
};
/**
 * 组织机构与权限管理--删除  /erp/sysStationRoleDispatch/delete   GET
 */
export const RequestSysStationRoleDispatchDelete = (sys_station_id, sys_role_id) => {
  return axiosInstance({
    method: 'DELETE',
    url: `/erp/sysStationRoleDispatch/delete?sys_station_id=${sys_station_id}&sys_role_id=${sys_role_id}`,
  });
};
/**
 * 组织机构与权限管理--添加部门/erp/node/savedept  POST
 */
export const RequestNodeSavedept = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/node/savedept',
    data,
  });
};
/**
 * 组织机构与权限管理--删除单个部门/erp/node/{id}   DELETE
 */
export const RequestNodeDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/node/' + id,
  });
};
/**
 * 组织机构与权限管理--修改部门 erp/node/save   post
 */
export const RequestNodeSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/node/save',
    data,
  });
};
/**
 * 组织机构与权限管理--获取所有岗位列表/erp/sysStation/list   get
 */
export const RequestsysStationList = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysStation/list',
  });
};
/**
 * 组织机构与权限管理--获取当前部门的所有岗位列表/erp/sysStation/getStationOfNode/{node}   get
 */
export const RequestSysStationGetStationOfNode = (node) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysStation/getStationOfNode/' + node,
  });
};
/**
 * 组织机构与权限管理--获取所有岗位列表/erp/sysStation/getlistlimit   post
 */
export const RequestsysStationGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysStation/getlistlimit',
    data,
  });
};
/**
 * 组织机构与权限管理--过去当前行的关联角色信息/erp/sysStation/getRoleByStation   get
 */
export const RequestsysStationGetRoleByStation = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysStation/getRoleByStation?sys_station=' + id,
  });
};
/**
 * 组织机构与权限管理--添加岗位/erp/sysStation/save  post
 */
export const RequestsysStationSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysStation/save',
    data,
  });
};
/**
 * 组织机构与权限管理--根据当前角色获取当前节点的系统角色/erp/sysRole/getRole post
 */
export const RequestsysRoleGetRole = (data) => {
  return axiosInstance({
    method: 'post',
    // url: '/erp/sysRole/getRole?company=' + data,
    url: '/erp/sysRole/getRole',
    data,
  });
};
/**
 * 组织机构与权限管理--删除单个岗位/erp/sysStation/{id}   delete
 */
export const RequestsysStationDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/sysStation/' + id,
  });
};
/**
 * 组织机构与权限管理--网点管理获取列表/disassemblyDot/getlistlimit  post
 */
export const RequestDisassemblyDotGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/disassemblyDot/getlistlimit',
    data,
  });
};
/**
 * 组织机构与权限管理--网点管理获取列表树   /disassemblyDot/getListLimitTreeByCompany  get
 */
export const RequestDisassemblyDotGetListLimitTreeByCompany = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/disassemblyDot/getListLimitTreeByCompany',
  });
};

/**
 * 组织机构与权限管理--网点管理保存 /disassemblyDot/save  post
 */
export const RequestDisassemblyDotSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/disassemblyDot/save',
    data,
  });
};
/**
 * 组织机构与权限管理--网点管理保存 /disassemblyDot/deleteList  post
 */
export const RequestDisassemblyDotDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/disassemblyDot/deleteList',
    data,
  });
};
/**
 * 登录接口 /login        POST
 */
export const RequestLOGIN = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/login',
    data,
  });
};
/**
 * 登录验证码 /getValidateCodeImage        get
 */
export const RequestGetValidateCodeImage = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/getValidateCodeImage',
  });
};
/**
 * 角色管理----获取当前员工返回的权限 /erp/employee/getfunctionTree        POST
 */
export const RequestEmployeeGetfunctionTree = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/employee/getfunctionTree',
    data,
  });
};
/**
 * 角色管理---添加员工 /erp/sysRole/save        POST
 */
export const RequestSysRoleSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysRole/save',
    data,
  });
};
/**
 * 角色管理---添加员工 /erp/employee/employeeStationDispatch       POST
 */
export const RequesTemployeeEmployeeStationDispatch = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/employee/employeeStationDispatch',
    data,
  });
};
/**
 * 角色管理---根据角色ID获取当前角色的权限 /erp/sysRole/getFunctionByRole        get
 */
export const RequestSysRoleGetFunctionByRole = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysRole/getFunctionByRole?sys_role=' + id,
  });
};
/**
 * 员工管理查看相关的权限    http://localhost:9091/sysStation/getFunctionByStation        get
 */
export const RequestSysStationGetFunctionByStation = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/sysStation/getFunctionByStation?id=' + id,
  });
};
/**
 * 角色管理---岗位绑定角色 /sysStationRoleDispatch/save       POST
 */
export const RequestsysStationRoleDispatchSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysStationRoleDispatch/save',
    data,
  });
};
/**
 * 角色管理---修改角色权限 /erp/sysRoleFunction/save       POST
 */
export const RequestsysRoleFunctionSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/sysRoleFunction/save',
    data,
  });
};
/**
 * 系统管理---操作日志管理---获取列表数据 /erp/operationLog/list       get
 */
export const RequestOperationLogSave = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/operationLog/list',
  });
};
/**
 * 系统管理---操作日志管理---根据分页获取列表数据 /erp/operationLog/getlistlimit      post
 */
export const RequestOperationLogGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/operationLog/getlistlimit',
    data,
  });
};
/**
 * 系统管理---操作日志管理---删除单个列表数据 /erp/operationLog/{id}    delete
 */
export const RequestOperationLogDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/operationLog/' + id,
  });
};

/**
 * 系统管理---操作日志管理---批量删除列表数据 /erp/operationLog/deleteList    delete
 */
export const RequestOperationDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/operationLog/deleteList',
    data,
  });
};

/**
 * 系统管理---登录日志管理---获取列表数据 /erp/loginLog/getlistlimit   post
 */
export const RequestLoginLogGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/loginLog/getlistlimit',
    data,
  });
};

/**
 * 系统管理---登录日志管理---删除 /erp/loginLog/{id}   delete
 */
export const RequestLoginLogDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/erp/loginLog/' + id,
  });
};
/**
 * 系统管理---操作日志管理---批量删除列表数据 /erp/operationLog/deleteList    delete
 */
export const RequestloginLogDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/loginLog/deleteList',
    data,
  });
};
/**
 * 仓储管理---仓库管理---获取列表数据 /store/warehouse/getlistlimit   GET
 */
export const RequestWarehouseGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/warehouse/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---仓库管理---获取列表数据 /store/warehouse/list   GET
 */
// export const RequestWarehouseGetlist = () => {
//     return axiosInstance({
//         method: 'GET',
//         url: '/store/warehouse/list',
//     })
// }
/**
 * 仓储管理---仓库管理---获取列表数据 /store/warehouse/save   post
 */
export const RequestWarehouseSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/warehouse/save',
    data,
  });
};
/**
 * 仓储管理---仓库管理---获取列表数据/warehouse/{id}   delete
 */
export const RequestWarehouseDel = (id) => {
  return axiosInstance({
    method: 'delete',
    url: '/store/warehouse/' + id,
  });
};
/**
 * 根据公司节点获取公司信息/companies/{node}   delete
 */
export const RequestCompaniesNode = (node) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/' + node,
  });
};
/**
 * 仓储管理---原材料---获取列表数据/rawMaterial/getlistlimit  get
 */
export const RequestRawMaterialGetlistlimit = (currentPage, pageSize) => {
  return axiosInstance({
    method: 'get',
    url: '/store/rawMaterial/getlistlimit?currentpage=' + currentPage + '&pagesize=' + pageSize,
  });
};
/**
 * 仓储管理---原材料---保存修改/rawMaterial/save  POST
 */
export const RequestRawMaterialSave = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/store/rawMaterial/save',
    data,
  });
};
/**
 * 仓储管理---原材料---删除列表数据/rawMaterial/deleteList  post
 */
export const RequestRawMaterialDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/rawMaterial/deleteList',
    data,
  });
};
/**
 * 仓储管理---原材料---原材料出库/rawMaterial/materialOutbound  post
 */
export const RequestRawMaterialMaterialOutbound = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/rawMaterial/materialOutbound',
    data,
  });
};
/**
 * 仓储管理---原材料---所有原材料类型/rawMaterial/getMaterialType  get
 */
export const RequestRawMaterialGetMaterialType = () => {
  return axiosInstance({
    method: 'get',
    url: '/store/rawMaterial/getMaterialType',
  });
};
/**
 * 仓储管理------库存预警 /inventoryWarnning/getWarningByStatisticId  get
 */
export const RequestInventoryWarnningGetWarningByStatisticId = (contentType, statisticId) => {
  return axiosInstance({
    method: 'get',
    url: `/store/inventoryWarnning/getWarningByStatisticId?contentType=${contentType}&statisticId=${statisticId}`,
  });
};
/**
 * 仓储管理------库存预警------修改保存 /inventoryWarnning/save  post
 */
export const RequestInventoryWarnningSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inventoryWarnning/save',
    data,
  });
};
/**
 * 仓储管理------原材料统计量详情------获取列表 /rawMaterial/getMaterialDetail  post
 */
export const RequestRawMaterialGetMaterialDetail = (statisticId) => {
  return axiosInstance({
    method: 'get',
    url: '/store/rawMaterial/getMaterialDetail?statisticId=' + statisticId,
  });
};
/**
 * 仓储管理------非溯源件------获取列表 /parts/getPartsDetail  post
 */
export const RequestPartsGetPartsDetail = (statisticId) => {
  return axiosInstance({
    method: 'get',
    url: '/store/parts/getPartsDetail?statisticId=' + statisticId,
  });
};
/**
 * 仓储管理------危固废------获取列表 /hazardousWaste/getWasteDetail  post
 */
export const RequestHazardousWasteGetWasteDetail = (statisticId) => {
  return axiosInstance({
    method: 'get',
    url: '/store/hazardousWaste/getWasteDetail?statisticId=' + statisticId,
  });
};
/**
 * 仓储管理---获取仓库列表/warehouse/list  get
 */
export const RequestWarehouseList = () => {
  return axiosInstance({
    method: 'get',
    url: '/store/warehouse/list',
  });
};
/**
 * 仓储管理---入库管理内容接口---分页获取内容/inbound/getlistlimit  post
 */
export const RequestInboundGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inbound/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---入库管理内容接口---提交审核/inbound/inboundAudit  post
 */
export const RequestInboundInboundAudit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inbound/inboundAudit',
    data,
  });
};
/**
 * 仓储管理---入库管理内容接口---删除/inbound/deleteList   post
 */
export const RequestinboundDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inbound/deleteList',
    data,
  });
};
/**
 * 仓储管理---入库管理内容接口---根据入库单号查找内容/inboundForm/getByInbound  get
 */
export const RequestInboundFormGetByInbound = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/store/inboundForm/getByInbound?inbound_id=' + id,
  });
};
/**
 * 仓储管理---配件库存管理---分页获取内容/fittings/getlistlimit  get
 */
export const RequestFittingsGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/fittings/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---配件库存管理---配件入库/fittings/save  post
 */
export const RequestFittingsSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/fittings/save',
    data,
  });
};
/**
 * 仓储管理---配件库存管理---配件出库/fittings/fittingOutbound  post
 */
export const RequestFittingsFittingOutbound = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/fittings/fittingOutbound',
    data,
  });
};
/**
 * 仓储管理---配件库存管理---非溯源件获取列表数据/partsStatistic/getlistlimit post
 */
export const RequestPartsStatisticGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/partsStatistic/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---配件库存管理---非溯源件获取列表数据/parts/getPartsType get
 */
export const RequestPartsGetPartsType = () => {
  return axiosInstance({
    method: 'get',
    url: '/store/parts/getPartsType',
  });
};
/**
 * 仓储管理---配件库存管理---非溯源件入库/parts/save post
 */
export const RequestPartsSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/parts/save',
    data,
  });
};
/**
 * 仓储管理---配件库存管理---非溯源件出库/parts/partsOutbound post
 */
export const RequestPartsPartsOutbound = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/parts/partsOutbound',
    data,
  });
};
/**
 * 仓储管理---配件库存管理---非溯源件详情/partsStatistic/{id} post
 */
export const RequestpartsStatisticDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/store/partsStatistic/' + id,
  });
};
/**
 * 仓储管理---出库管理---分页获取内容/outboundForm/getlistlimit  get
 */
export const RequestOutboundFormGetlistlimit = (currentPage, pageSize) => {
  return axiosInstance({
    method: 'get',
    url: '/store/outboundForm/getlistlimit?currentpage=' + currentPage + '&pagesize=' + pageSize,
  });
};
/**
 * 仓储管理---出库管理---提交审核/outbound/outboundAudit  post
 */
export const RequestOutboundOutboundAudit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/outbound/outboundAudit',
    data,
  });
};

/**
 * 仓储管理---出库管理---分页获取内容/outbound/getlistlimit  get
 */
export const RequestOutboundGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/outbound/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---出库管理---获取仓库列表/outboundForm/getByOutbound  get
 */
export const RequestOutboundFormGetByOutbound = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/store/outboundForm/getByOutbound?outbound_id=' + id,
  });
};
/**
 * 仓储管理---出库管理---获取仓库列表/outbound/deleteList  post
 */
export const RequestOutboundDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/outbound/deleteList',
    data,
  });
};
/**
 * 仓储管理---仓库调拨---获取调拨列表/transfer/getlistlimit  GET
 */
export const RequestTransferGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/transfer/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---仓库调拨---获取调拨详情/transfer/getlistlimit  GET
 */
export const RequestTransferDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/store/transfer/' + id,
  });
};
/**
 * 仓储管理---仓库调拨---保存修改添加/transfer/save  post
 */
export const RequestTransferSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/transfer/save',
    data,
  });
};
/**
 * 仓储管理---仓库调拨---调拨审核  /transfer/transferAudit  post
 */
export const RequestTransferTransferAudit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/transfer/transferAudit',
    data,
  });
};
/**
 * 仓储管理---危固废---获取危固废列表/hazardousWaste/getlistlimit  GET
 */
export const RequestHazardousWasteGetlistlimit = (currentPage, pageSize) => {
  return axiosInstance({
    method: 'get',
    url: '/store/hazardousWaste/getlistlimit?currentpage=' + currentPage + '&pagesize=' + pageSize,
  });
};
/**
 * 仓储管理---危固废---获取危固废类型/hazardousWaste/getWasteType  GET
 */
export const RequestHazardousWasteGetWasteType = () => {
  return axiosInstance({
    method: 'get',
    url: '/store/hazardousWaste/getWasteType',
  });
};
/**
 * 仓储管理---危固废---获取危固废统计列表/wasteStatistic/getlistlimit  GET
 */
export const RequestWasteStatisticGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/wasteStatistic/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---危固废---修改保存/hazardousWaste/save  post
 */
export const RequestHazardousWasteSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/hazardousWaste/save',
    data,
  });
};
/**
 * 仓储管理---危固废---出库/hazardousWaste/wasteOutbound  post
 */
export const RequestHazardousWasteWasteOutbound = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/hazardousWaste/wasteOutbound',
    data,
  });
};
/**
 * 仓储管理---盘存---根据分页获取数据/inventory/getlistlimit post
 */
export const RequestInventoryGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inventory/getlistlimit',
    data,
  });
};
/**
 * 仓储管理---盘存---获取商品列表/inventory/getProduct post
 */
export const RequestInventoryGetProduct = (type) => {
  return axiosInstance({
    method: 'get',
    url: '/store/inventory/getProduct?contentType=' + type,
  });
};
/**
 * 仓储管理---盘存---结束盘点/inventory/save  post
 */
export const RequestInventorySave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inventory/save',
    data,
  });
};
/**
 * 仓储管理---盘存---暂停盘点/inventory/pauseInventory  post
 */
export const RequestInventoryPauseInventory = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inventory/pauseInventory',
    data,
  });
};
/**
 * 仓储管理---盘存---批量删除     /inventory/deleteList post
 */
export const RequestInventoryDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inventory/deleteList',
    data,
  });
};
/**
 * 仓储管理---盘存---getInventoryProduct      /inventory/getInventoryProduct post
 */
export const RequestInventoryGetInventoryProduct = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inventory/getInventoryProduct',
    data,
  });
};
/**
 * 仓储管理---获取盘点人---      employee/list
 */
export const RequestEmployeeList = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/list',
  });
};
/**
 * 仓储管理---盘存---根据id获取详情      /stockDetail/getStockDetail?inventoryId=21 get
 */
export const RequeststockDetailGetStockDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/store/stockDetail/getStockDetail?inventoryId=' + id,
  });
};
/* 图片测试#################################### */
export const RequestTest = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/test',
    data,
  });
};

//  /materialStatistic/getlistlimit
export const RequestMaterialStatisticGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/materialStatistic/getlistlimit',
    data,
  });
};
/**
 * 拖车用户列表     trail/dispatch/companyGetROrder   get
 */
export const RequestGetDriverPageList = (formData) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/getDriverPageList',
    data: formData,
  });
};
/**
 * 拖车管理---抢单管理---分页     trail/dispatch/companyGetROrder   get
 */
export const RequestDispatchCompanyGet = (data) => {
  return axiosInstance({
    method: 'post',
    url: `/trail/dispatch/companyGetOrder`,
    data,
  });
};

export const RequestDispatchCompanyGetROrder = (page, rows) => {
  return axiosInstance({
    method: 'get',
    url: `/trail/dispatch/companyGetROrder?page=${page}&rows=${rows}`,
  });
};
/**
 * 拖车管理---公司抢单     http://192.168.1.41:9092/cyr/trail/dispatch/companyRobOrder   get
 */
export const RequestDispatchCompanyRobOrder = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/dispatch/companyRobOrder',
    data,
  });
};
/**
 * 拖车管理---拖车车辆管理---添加拖车     /trailer/save   post
 */
export const RequestTrailerSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/trailer/save',
    data,
  });
};
export const RequestAddTrail = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'trail/trailer/saveTrailerForUni',
    data,
  });
};
/**
 * 拖车管理---拖车车辆管理---添加拖车     /trailer/save   post
 */
export const RequestTrailerList = (companyNode) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/trailer/list?companyNode=' + companyNode,
  });
};
/**
 * 拖车管理---拖车车辆管理---删除     /trailer/deleteList    post
 */
export const RequestTrailerDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/trailer/deleteList',
    data,
  });
};
/**
 * 拖车管理---司机管理---分页     /transportDrivers/getlistlimit  post
 */
export const RequestTransportDriversGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/transportDrivers/getlistlimit',
    data,
  });
};
/**
 * 拖车管理---司机管理---添加司机    /transportDrivers/save  post
 */
export const RequestTransportDriversSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/transportDrivers/save',
    data,
  });
};
/**
 * 拖车管理---司机管理---删除司机     /transportDrivers/deleteList  post
 */
export const RequestTransportDriversDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/transportDrivers/deleteList',
    data,
  });
};

/**
 * 拖车管理---司机管理---获取司机全部列表     /transportDrivers/list  get
 */
export const RequestTransportDriversList = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/transportDrivers/list?companyNode=' + data,
  });
};
/**
 * 拖车管理---司机管理---添加司机     /transportDrivers/uploadDriverInfo  post
 */
export const RequestTransportDriversUploadDriverInfo = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/transportDrivers/uploadDriverInfo',
    data,
  });
};
/**
 * 拖车管理---司机启用状态---添加司机     /transportDrivers/uploadDriverInfo  get
 */
export const RequestChangeDriverStatus = (id) => {
  return axiosInstance({
    method: 'get',
    url: `/trail/transportDrivers/driverBlockUp?driverId=${id}`,
  });
};

/**
 * 拖车管理---拖车工单---列表获取     /dispatch/companyGetOrder  post
 */
export const RequestDispatchCompanyGetOrder = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/dispatch/companyGetOrder',
    data,
  });
};
/**
 * 拖车管理---拆解厂拖车工单---角标获取    /trail/dispatch/getOrderStatusCountByCompany  get
 */
export const RequestGetOrderStatusCountByCompany = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/dispatch/getOrderStatusCountByCompany',
    data,
  });
};
/**
 * 拖车管理---公司拖车工单---角标获取    /trail/dispatch/getOrderStatusCountByTCompany  get
 */
export const RequestGetOrderStatusCountByTCompany = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/dispatch/getOrderStatusCountByTCompany',
    data,
  });
};
/**
 * 拖车管理---拖车列表---列表获取    /trailer/getlistlimit  post
 */
export const RequestTrailerGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/trailer/getlistlimit',
    data,
  });
};
export const RequestTrailerPhone = (phone) => {
  return axiosInstance({
    method: 'get',
    url: `/trail/transportDrivers/ifExistDriver?phone=${phone}`,
  });
};
/**
 * 拖车管理---分配拖车    /dispatch/trailerAndDriver  post
 */
export const RequestDispatchTrailerAndDriver = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/dispatch/trailerAndDriver',
    data,
  });
};
/**
 * 拖车管理---获取拖车司机名下的拖车    http://192.168.1.41:9092/cyr/trail/trailer/getCarOfDriver?driverId=57
 */
export const RequestTrailerGetCarOfDriver = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/trailer/getCarOfDriver?driverId=' + data,
  });
};
//添加司机
export const RequestAddDriver = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/transportDrivers/uploadDriverInfoUni',
    data,
  });
};
/**
 * 拖车管理---拖车公司预约抢单---列表获取     trail/dispatch/transferCompanyGetOrder
 * post传参和拆解厂获取订单一样  post
 */
export const RequestDispatchTransferCompanyGetOrder = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/dispatch/transferCompanyGetOrder',
    data,
  });
};
/**
 * 拖车管理---拖车订单详情---列表获取     http://192.168.1.41:9092/cyr/trail/orderDetail/getOrderDetail/1024
 */
export const RequestOrderDetailGetOrderDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/orderDetail/getOrderDetail/' + id,
  });
};
/**
 * 拖车公司列表
 */
export const RequestGetTrailerList = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/companies/getlistlimit',
    data,
  });
};
/**
 * 分配拖车
 */
export const RequestAllocation = (orderSn, nodeId) => {
  return axiosInstance({
    method: 'post',
    url: `/trail/dispatch/companyRobOrder?orderSn=${orderSn}&transportCompany=${nodeId}`,
  });
};
/**
 * 拖车基础距离设置 公司列表
 */
export const RequestGetTrailCompany = () => {
  return axiosInstance({
    method: 'get',
    url: `shoppingmall/trailerFeeSetting/getTrailCompany`,
  });
};
/**
 * 拖车基础距离设置数据列表
 */
export const RequestGetTrailDistance = (data) => {
  return axiosInstance({
    method: 'post',
    url: `shoppingmall/trailerFeeSetting/getPageList`,
    data,
  });
};
/**
 * 拖车基础距离设置添加
 */
export const RequestAddTrailDistance = (data) => {
  return axiosInstance({
    method: 'post',
    url: `shoppingmall/trailerFeeSetting/save`,
    data,
  });
};
/**
 * 拖车基础距离设置删除
 */
export const RequestDeleteTrailDistance = (ids) => {
  return axiosInstance({
    method: 'post',
    url: `shoppingmall/trailerFeeSetting/deleteList?ids=${ids}`,
  });
};
/**
 * 省份证回填    /basic/personRecognize  get
 */
export const RequestBasicPersonRecognize = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/recognize/personRecognize',
    data,
  });
};
/**
 * 行驶证正面识别    /erp/recognize/vehicleLicenseRecognizeFront  get
 */
export const RequestBasicVehicleLicenseRecognizeFront = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/recognize/vehicleLicenseRecognizeFront',
    data,
  });
};
/**
 * 行驶证背面识别    /erp/recognize/vehicleLicenseRecognizeBack  get
 */
export const RequestBasicVehicleLicenseRecognizeBack = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/recognize/vehicleLicenseRecognizeBack',
    data,
  });
};
/**
 * 行驶证背面识别    /erp/recognize/vehicleLicenseRecognizeBack  get
 * http://localhost:9092/cyr/erp/authorizedLetter/getLetterModel?area=四川省,成都市
 */
export const RequestAuthorizedLetterGetLetterModel = (area) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/authorizedLetter/getLetterModel?area=' + area,
  });
};
/**
 * 回收单获取缺件情况    /erp/missingPartDeduction/getSettingByQuery?node=0&weight=1615kg&loadCount=35&type=小型客车  get
 */
export const RequestMissingPartDeductionGetSettingByQuery = (node, weight, loadCount, type) => {
  return axiosInstance({
    method: 'GET',
    url: `/erp/missingPartDeduction/getSettingByQuery?node=${node}&weight=${weight}&loadCount=${loadCount}&type=${type}`,
  });
};
/**
 * 驾照回填    /basic/drivingLicense  get
 */
export const RequestBasicDrivingLicense = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/recognize/drivingLicense',
    data,
  });
};
/**
 * 驾照回填    /basic/vehicleLicenseRecognizeBoth  get
 */
export const RequestBasicVehicleLicenseRecognize = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/recognize/vehicleLicenseRecognizeBoth',
    data,
  });
};
/**
 * 委托书   添加  /authorizedLetter/uploadLetter  post
 */
export const RequestAuthorizedLetterUploadLetter = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/authorizedLetter/uploadLetter',
    data,
  });
};
/**
 * 委托书   列表 /authorizedLetter/getlistlimit post
 */
export const RequestAuthorizedLetterGetlistlimit = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/authorizedLetter/getlistlimit',
    data,
  });
};
/**
 * 委托书   列表 /authorizedLetter/getPageList post
 */
export const RequestAuthorizedLetterGetPageList = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/authorizedLetter/getPageList',
    data,
  });
};
/**
 * 委托书   删除  /authorizedLetter/deleteList post
 */
export const RequestAuthorizedLetterDeleteList = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/authorizedLetter/deleteList',
    data,
  });
};
/**
 * 委托书   修改  authorizedLetter/updateLetter post
 */
export const RequestAuthorizedLetterUpdateLetter = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/authorizedLetter/updateLetter',
    data,
  });
};
/**
 * 拖车申述   获取分页信息  /complaintReport/getlistlimit post
 */
export const RequestComplaintReportGetlistlimit = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/trail/complaintReport/getlistlimit',
    data,
  });
};
/**
 * 拖车申述   获取对象  /complaintReport/{id}   get
 */
export const RequestComplaintReportDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/trail/complaintReport/' + id,
  });
};
/**
 * 拖车申述   同意  /complaintReport/complainAudit   post
 */
export const RequestComplaintReportComplainAudit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/complaintReport/complainAudit',
    data,
  });
};
/**
 * 协议管理    /agreement/getlistlimit   post
 */
export const RequestAgreementGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/agreement/getlistlimit',
    data,
  });
};
/**
 * 协议管理---添加   /agreement/uploadAgreement   post
 */
export const RequestAgreementUploadAgreement = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/agreement/uploadAgreement',
    data,
  });
};
/**
 * 协议管理---批量删除   /agreement/deleteList   post
 */
export const RequestAgreementDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/agreement/deleteList',
    data,
  });
};
/**
 * 协议管理---废除协议   /agreement/agreementFailure   post
 */
export const RequestAgreementAgreementFailure = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/agreement/agreementFailure',
    data,
  });
};
/**
 * 获取报废车信息    /scrapCar/getlistlimit   post
 */
export const RequestScrapCarGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/scrapCar/getlistlimit',
    data,
  });
};
/**
 * 获取报废车过磅    /getweight/save   post
 */
export const RequestGetweightSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/getweight/save',
    data,
  });
};
/**
 * 获取报废车预处理   /erp/scrapCar/pretreatment?carId=63   post
 */
export const RequestScrapCarPretreatment = (carId) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/scrapCar/pretreatment?carId=' + carId,
  });
};
/**
 * 结算单列表   /trail/settle/getlistlimit   post
 */
export const RequestSettleGetlistlimit = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/trail/settle/getlistlimit',
    data,
  });
};
/**
 * 获取税率   /trail/settle/texGet   get
 */
export const RequestTexGet = () => {
  return axiosInstance({
    method: 'get',
    url: '/trail/settle/texGet',
  });
};
/**
 * 设置税率   /trail/settle/texSet  get
 */
export const RequestTexSet = (val) => {
  return axiosInstance({
    method: 'get',
    url: `/trail/settle/texSet?tex=${val}`,
  });
};
/**
 * 结算单审核   /trail/settle/auditSettle   post
 */
export const RequestSettleauditSettle = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/trail/settle/auditSettle',
    data,
  });
};
/**
 * 结算单获取详情对象   /trail/settle/id   get
 */
export const RequestSettleId = (id) => {
  return axiosInstance({
    method: 'get',
    url: `/trail/settle/${id}`,
  });
};
/**
 * 结算单管理   http://192.168.1.41:9092/cyr/trail/settle/billSettleWithoutWeb?id=333   get
 */
export const RequestSettleBillSettleWithoutWeb = (id) => {
  return axiosInstance({
    method: 'get',
    url: `/trail/settle/billSettleWithoutWeb?id=` + id,
  });
};
/**
 * 上传车辆注销证明和回收证明   /erp/scrapCar/upLoadDisassemblyCertificate  post
 */
export const RequestUpLoadScrapCarDisassemblyCertificate = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/scrapCar/upLoadDisassemblyCertificate',
    data,
  });
};
/**
 * 获取区域货架信息   /store/warehouseArea/getAreaInfo/260  post
 */
export const RequestUpWarehouseAreaGetAreaInfo = (id) => {
  return axiosInstance({
    method: 'GET',
    url: '/store/warehouseArea/getAreaInfo/' + id,
  });
};
/**
 * 获取货架列表   /store/warehouseArea/getlistlimit   post
 */
export const RequestUpWarehouseAreaGetlistlimit = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/store/warehouseArea/pageList',
    data,
  });
};
/**
 * 添加货架   /store/warehouseArea/save    post
 */
export const RequestUpWarehouseAreaSave = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/store/warehouseArea/save',
    data,
  });
};
/**
 * 删除货架   /store/warehouseArea/deleteList   post
 */
export const RequestUpWarehouseAreaDeleteList = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/store/warehouseArea/deleteList',
    data,
  });
};
/**
 * 审核   activiti/CodeDeploy/byUserSend   post
 */
export const RequestCodeDeployByUserSend = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/activiti/CodeDeploy/byUserSend',
    data,
  });
};
/**
 * 审核列表获取   activiti/companyProcess/getlistlimit   post
 */
export const RequestCompanyProcessGetlistlimit = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/activiti/companyProcess/getlistlimit',
    data,
  });
};
/**
 * 审核删除   activiti/activiti/deleteProcess   post
 */
export const RequestActivitiDeleteProcess = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/activiti/activiti/deleteProcess',
    data,
  });
};
/**
 * 审核删除  acitviti/activiti/getPersonTaskCount
参数employeeId 
get请求   
 */
export const RequestActivitiAcitvitiGetPersonTaskCount = (employeeId) => {
  return axiosInstance({
    method: 'get',
    url: '/activiti/activiti/getPersonTaskCount?employeeId=' + employeeId,
  });
};
/**
 * 审核详情获取     get
 * http://localhost:9099/activiti/getTaskDetail?tenantId=调拨审核&businessKey=201
 */
export const RequestActivitiGetTaskDetail = (tenantId, businessKey) => {
  return axiosInstance({
    method: 'GET',
    url: `/activiti/activiti/getTaskDetail?tenantId=${tenantId}&businessKey=${businessKey}`,
  });
};
/**
 * 审核历史任务获取     get
 * http://192.168.1.41:9092/cyr/activiti/activiti/getHistoryTask?employeeId=204&page=1&rows=10
 */
export const RequestActivitiGetHistoryTask = (employeeId, page, rows) => {
  return axiosInstance({
    method: 'GET',
    url: `/activiti/activiti/getHistoryTask?employeeId=${employeeId}&page=${page}&rows=${rows}`,
  });
};
/**
 * 审核流程详情获取     get
 * http://192.168.1.41:9092/cyr/activiti/CodeDeploy/getDefinedProcess?taskId=c5b91849-b4eb-11ee-bbbe-74563c113125
 */
export const RequestCodeDeployGetDefinedProcess = (taskId) => {
  return axiosInstance({
    method: 'GET',
    url: `/activiti/CodeDeploy/getDefinedProcess?taskId=${taskId}`,
  });
};
/**
 * 审核拒绝    post   /activiti/rejectTask
 */
export const RequestActivitiRejectTask = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/activiti/activiti/rejectTask',
    data,
  });
};
/**
 * 员工获取自己都后台任务列表   activiti/activiti/getPersonTask   post
 */
export const RequestActivitiGetPersonTask = (id, page, rows) => {
  return axiosInstance({
    method: 'GET',
    url: `/activiti/activiti/getPersonTask?employeeId=${id}&page=${page}&rows=${rows}&`,
  });
};
/**
 * 员工启动流程   activiti/activiti/startProcess   post
 */
export const RequestActivitiStartProcess = () => {
  return axiosInstance({
    method: 'GET',
    url: '/activiti/activiti/startProcess',
  });
};
/**
 * 获取定义好的流程的图片   activiti/CodeDeploy/getProcessDefined   post
 */
export const RequestCodeDeployGetProcessDefined = (processId) => {
  return axiosInstance({
    method: 'GET',
    url: '/activiti/CodeDeploy/getProcessDefined?processId=' + processId,
  });
};
/**
 * 员工完成自己的任务   activiti/activiti/finishMyMission   post
 */
export const RequestActivitFinishMyMission = (taskId) => {
  return axiosInstance({
    method: 'GET',
    url: '/activiti/activiti/finishMyMission?taskId=' + taskId,
  });
};
export const RequestActivitFinishMyMissionnew = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/activiti/activiti/finishMyMission',
    data,
  });
};
/**
 * 获取车辆品牌 		 /api/getBrands 	get
 */
export const RequestCarBrand = (keyword) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/carBrand/getCarBrandGroupByFirstLetter?keyword=' + keyword,
  });
};

/**
 * 获取车型 		/api/getByBrandName?brandName 	get
 */
export const RequestCarType = (name, keyword) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/carSeries/getByBrandName?brandName=' + name + '&keyword=' + keyword,
  });
};
/**
 * 获取车系 		/api/getByBrandName?brandName 	get
 */
export const RequestCarSeries = (name, keyword) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/carModel/getSeriesModels?seriesName=' + name + '&keyword=' + keyword,
  });
};
/**
 * 公司列表 		/api/company/list 	get
 */
export const RequestCompanyList = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/companies/list',
  });
};
/**
 * 回收单上传 		/trail/orderDetail/recyclerSetOrder 	get
 */
export const RequestOrderDetailRecyclerSetOrder = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/orderDetail/recyclerSetOrder',
    data,
  });
};

// http://192.168.1.116:8080/printer/printBitmap

/* 首页 */
/**
 * 顶部数据 	http://192.168.1.41:9092/cyr/erp/statistic/getTopMessage	get
 */
export const RequestStatisticGetTopMessage = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getTopMessage',
  });
};
/**
 * 仅七天的收拆量趋势 	http://192.168.1.41:9092/cyr/erp/statistic/getRCAndDC 	get
 */
export const RequestStatisticGetRCAndDC = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getRCAndDC',
  });
};
/**
 * 收车结算统计 	http://192.168.1.41:9092/cyr/erp/statistic/getPriceOfSettle 	get
 */
export const RequestStatisticGetPriceOfSettle = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getPriceOfSettle',
  });
};
/**
 * 原材料统计 	http://192.168.1.41:9092/cyr/erp/statistic/getMaterialScale	   get
 */
export const RequestStatisticGetMaterialScale = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getMaterialScale',
  });
};
/**
 * 危固废统计  	http://192.168.1.41:9092/cyr/erp/statistic/getWasteScale     get
 */
export const RequestStatisticGetWasteScale = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getWasteScale',
  });
};
/**
 * 报废车  	http://192.168.1.41:9092/cyr/erp/statistic/getCarScale     get
 */
export const RequestStatisticGetCarScale = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarScale',
  });
};

/**
 * 拆解资源占比  	http://192.168.1.41:9091/statistic/getPieChartData    get
 */
export const RequestStatisticGetPieChartData = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getPieChartData',
  });
};
/**
 * 报废车辆数据趋势  	http://192.168.1.41:9092/cyr/erp/statistic/getCarNumOfDS    get
 */
export const RequestStatisticGetCarNumOfDS = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarNumOfDS',
  });
};
/**
 * 报废车辆数据趋势  	http://192.168.1.41:9092/cyr/erp/statistic/getCarNumOfMonth    get
 */
export const RequestStatisticGetCarNumOfMonth = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarNumOfMonth',
  });
};
/**
 * 回收报废车统计  	http://192.168.1.41:9092/cyr/erp/statistic/getCarWeightScale    get
 */
export const RequestStatisticGetCarWeightScale = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarWeightScale',
  });
};

/**
 * 回收网点状态修改  	http://192.168.1.41:9092/cyr//erp/disassemblyDot/changeDotStatus?id=455    get
 */
export const RequestRecycleStatusChange = (id) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/disassemblyDot/changeDotStatus?id=${id}`,
  });
};
/**
 * 各流程车辆统计     	http://192.168.1.41:9092/cyr/erp/statistic/getCarByProcess    get
 */
export const RequestStatisticGetCarByProcess = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarByProcess',
  });
};
/**
 * 报废车类型统计  	http://192.168.1.41:9092/cyr/erp/statistic/getCarNumByType    get
 */
export const RequestStatisticGetCarNumByType = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarNumByType',
  });
};
/**
 * 报废车车辆来源  	http://192.168.1.41:9092/cyr/erp/statistic/getCarByOrigin    get
 */
export const RequestStatisticGetCarByOrigin = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarByOrigin',
  });
};
/**
 * 报废车车辆类型  	http://192.168.1.41:9092/cyr/erp/statistic/getCarByFuel    get
 */
export const RequestStatisticGetCarByFuel = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getCarByFuel',
  });
};
/**
 * 溯源件统计  	http://192.168.1.41:9092/cyr/erp/statistic/getFittingByBrand    get
 */
export const RequestStatisticGetFittingByBrand = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getFittingByBrand',
  });
};
/**
 * 溯源件出库前五  	http://192.168.1.41:9092/cyr/erp/statistic/getFittingByBrand2    get
 */
export const RequestStatisticgetFittingByBrand2 = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getFittingOutByBrand',
  });
};
/**
 * 配件统计  	http://192.168.1.41:9092/cyr/erp/statistic/getFAPOfIAO    get
 */
export const RequestStatisticGetFAPOfIAO = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getFAPOfIAO',
  });
};
/**
 * 配件出入库趋势  	http://192.168.1.41:9092/cyr/erp/statistic/getFAPByDate    get
 */
export const RequestStatisticGetFAPByDate = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getFAPByDate',
  });
};
/**
 * 原材料统计  	http://192.168.1.41:9092/cyr/erp/statistic/getMOfIAO    get
 */
export const RequestStatisticGetMOfIAO = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getMOfIAO',
  });
};
/**
 * 原材料占比  	http://192.168.1.41:9092/cyr/erp/statistic/getMaterialByType    get
 */
export const RequestStatisticGetMaterialByType = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getMaterialByType',
  });
};
/**
 * 原材料占比  	http://192.168.1.41:9092/cyr/erp/statistic/getMaterialByDate    get
 */
export const RequestStatisticGetMaterialByDate = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getMaterialByDate',
  });
};
/**
 * 原材料占比  	http://192.168.1.41:9092/cyr/erp/statistic/getMaterialByWarehouse?warehouseId=380   get
 */
export const RequestStatisticGetMaterialByWarehouse = (warehouseId) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getMaterialByWarehouse?warehouseId=' + warehouseId,
  });
};
/**
 * 配件实时入库情况  	http://localhost:9092/cyr/store/fittings/getLatestFittings   get
 */
export const RequestFittingsGetLatestFittings = () => {
  return axiosInstance({
    method: 'get',
    url: '/store/fittings/getLatestFittings',
  });
};
/**
 * 配件实时入库情况  	http://localhost:9092/cyr/shoppingmall/shop/getStatistics/142   get
 */
export const RequestShopGetStatistics = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shop/getStatistics/getShopMessage?id=' + id,
  });
};

/**
 * 危固废出入库趋势  	http://192.168.1.41:9092/cyr/erp/statistic/getWByDate   get
 */
export const RequestStatisticGetWByDate = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getWByDate',
  });
};
/**
 * 危固废统计  	http://192.168.1.41:9092/cyr/erp/statistic/getWByWAT?warehouseId=318   get
 */
export const RequestStatisticGetWByWAT = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getWByWAT?warehouseId=' + id,
  });
};
/**
 * 危固废统计  	http://192.168.1.41:9092/cyr/erp/statistic/getWByWAT?warehouseId=318   get
 */
export const RequestStatisticGetWesteNumByType = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getWesteNumByType',
  });
};
/**
 * 危固废统计2  	http://192.168.1.41:9092/cyr/erp/statistic/getWasteByWarehouse?warehouseId=380   get
 */
export const RequestStatisticGetWasteByWarehouse = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getWasteByWarehouse?warehouseId=' + id,
  });
};
/**
 * 昨日配件统计  	erp/statistic/getLastDayStoreInfo   get
 */
export const RequestStatisticGetLastDayStoreInfo = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/statistic/getLastDayStoreInfo',
  });
};
/**
 * 可读权限  	http://192.168.1.41:9092/cyr/erp/employee/getFunctionAuthorize?functionName=网点管理   get
 */
export const RequestEmployeeGetFunctionAuthorize = (name) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/getFunctionAuthorize?functionName=' + name,
  });
};

/**
 * 退出登录  	http://192.168.1.41:9092/cyr/erp/logout  get
 */
export const RequestLogout = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/logout',
  });
};
/**
 * 扫描剩余次数查询  	/recognizeLeft/{id}  get
 */
export const RequestRecognizeLeft = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/recognizeLeft/' + id,
  });
};
/**
 * 扫描充值积累列表  	/recognizeLog/getlistlimit  post
 */
export const RequestRecognizeLogGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/recognizeLog/getlistlimit',
    data,
  });
};
/**
 * 充值明细  	/recognizeLog/list  post
 */
export const RequestRecognizeLogList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/recognizeLog/list',
    data,
  });
};
/**
 * 充值记录  	/companies/getRechargeRecords  post
 */
export const RequestRecordPlatform = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/getRechargeRecords',
    data,
  });
};
/**
 * 充值记录  	/recognizeLog/list  post
 */
export const RequestGetCompaniesBalance = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/getCompaniesBalance',
    data,
  });
};
/**
 * 首次免费领  	/recognizeLeft/firstUse  post
 */
export const RequestRecognizeLeftFirstUse = (data) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/recognizeLeft/firstUse?type=${data}&ownerType=E`,
  });
};
/**
 * 扫描次数充值  	/recognizeLeft/addRecognizeNum  post
 */
export const RequestRecognizeLeftAddRecognizeNum = (type, num, price) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/recognizeLeft/addRecognizeNum?type=${type}&num=${num}&price=${price}`,
  });
};
/**
 * 获取识别单价  	/recognizeLeft/getRecognizeFee  post
 */
export const RequestRecognizeLeftGetRecognizeFee = (type) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/recognizeLeft/getRecognizeFee?type=' + type,
  });
};
/**
 * 获取识别单价列表  	/recognizeLeft/getAllRecognizeFee  post
 */
export const RequestRecognizeLeftGetAllRecognizeFee = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/recognizeLeft/getAllRecognizeFee',
  });
};
/**
 * 修改识别单价  	/recognizeLeft/setRecognizeFee  post
 */
export const RequestRecognizeLeftSetRecognizeFee = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/recognizeLeft/setRecognizeFee',
    data,
  });
};
/**
 * erp员工使用vin码识别  /recognize/vinCode
 */
export const RequestRecognizeVinCode = (vin) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/recognize/vinCode?vin=' + vin,
  });
};
/**
 * 财务支付线下  	/settle/getUnBilledSettle  post
 */
export const RequestSettleGetUnBilledSettle = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/settle/getUnBilledSettle',
    data,
  });
};
/**
 * 收车结算  	/transportCompanySettle/getlistlimit  post
 */
export const RequestCollectionFeeDetail = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/companies/getCollectionFeeDetail',
    data,
  });
};
/**
 * 收车导出明细  	/companies/outPutCollectionPriceDetailExcel  post
 */
export const RequestCollectionExport = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/companies/outPutCollectionPriceDetailExcel',
    data,
    responseType: 'blob',
  });
};
/**
 * 拖车结算  	/transportCompanySettle/getlistlimit  post
 */
export const RequestTrailerSettlement = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/transportCompanySettle/getlistlimit',
    data,
  });
};
/**
 * 物流结算  	/logistics/getPageList  post
 */
export const RequesLogisticsDetail = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'shoppingmall/logistics/getPageList',
    data,
  });
};
export const RequesLogistics = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'shoppingmall/logisticsSettleInfo/getPageList',
    data,
  });
};
/**
 * 物流结算---确认发票  /logisticsSettleInfo/getLogisticsInfo/5  post
 */
export const RequestConfirmInvoice = (ids) => {
  return axiosInstance({
    method: 'post',
    url: `shoppingmall/logisticsSettleInfo/confirmInvoice?ids=${ids}`,
  });
};
/**
 * 物流公司  	/logisticsCompany/list  post
 */
export const RequestLogisticsCompany = () => {
  return axiosInstance({
    method: 'get',
    url: 'shoppingmall/logistics/getLogisticsCompanies',
  });
};
/**
 * 物流批量付款 	/logistics/settle?ids=17,18,19  post
 */
export const RequestBatchPay = (data) => {
  return axiosInstance({
    method: 'post',
    url: `shoppingmall/logistics/settle`,
    data,
  });
};
/**
 * 拖车结算确认付款  	/erp/transportCompanySettle/paySettle?id=[21]  get
 */
export const RequestTrailerConfirm = (data) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/transportCompanySettle/paySettle?id=${data}`,
  });
};
/**
 * 拖车结算确认发票  	/erp/transportCompanySettle/invoiceSettle  get
 */
export const RequestInvoiceSettleConfirm = (data) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/transportCompanySettle/invoiceSettle?id=${data}`,
  });
};
/**
 * 拖车结算导出  	/erp/transportCompanySettle/outputExcel  post
 */
export const RequestExportExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: `/erp/transportCompanySettle/outputExcel`,
    data,
    responseType: 'blob',
  });
};
/**
 * 拖车订单导出  	/erp/trail/dispatch/excelOutput post
 */
export const RequestExcelOutput = (data) => {
  return axiosInstance({
    method: 'post',
    url: `/trail/dispatch/excelOutput`,
    data,
    responseType: 'blob',
  });
};
/**
 * 拖车某月详情 	/erp/transportCompanySettle/21  get
 */
export const RequestTrailerDetail = (id) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/transportCompanySettle/${id}`,
  });
};
/**
 * 拖车导出单月 	/erp/transportCompanySettle/outputExcelByMonth?id=32
 */
export const RequestExportMonth = (id, data) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/transportCompanySettle/outputExcelByMonth?id=${id}`,
    data,
    responseType: 'blob',
  });
};
/**
 * 根据员工获取公司列表  	http://192.168.1.41:9092/cyr/erp/employee/getCompanyOfEmployee  post
 */
export const RequestEmployeeGetCompanyOfEmployee = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/getCompanyOfEmployee',
  });
};

/**
 * 个人分账记录  	http://192.168.1.41:9092/cyr/shoppingmall/dividendLog/getlistlimit  post
 */
export const RequestPersonalRecords = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/dividendLog/getlistlimit',
    data,
  });
};
/**
 * 个人分账记录上传Excel模板  	http://192.168.1.41:9092/cyr/shoppingmall/dividendLog/inputApplyDrawingLog  post
 */
export const RequestUploadExcelTemp = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/dividendLog/inputApplyDrawingLog',
    data,
  });
};
/**
 * 公司分账记录  	http://192.168.1.41:9092/cyr/pay/collectionFeeDetail/getlistlimit  post
 */
export const RequestCompanyRecords = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/pay/collectionFeeDetail/getlistlimit',
    data,
  });
};
/**
 * 分账结算（发票平台） /pay/collectionFeeDetail/invoiceStatusPlant?id=20,21
 */
export const RequestConfirmPlatformInvoice = (ids) => {
  return axiosInstance({
    method: 'get',
    url: `/pay/collectionFeeDetail/invoiceStatusPlant?id=${ids}`,
  })
}
/**
 * 分账结算（发票易宝） /pay/collectionFeeDetail/invoiceStatusYBPay?id=1,2
 */
export const RequestConfirmYbInvoice = (ids) => {
  return axiosInstance({
    method: 'get',
    url: `/pay/collectionFeeDetail/invoiceStatusYBPay?id=${ids}`,
  })
}
/**
 * 根据选择的公司id获取相关的信息  	http://192.168.1.41:9092/cyr/erp/employee/checkoutCompany  post
 */
export const RequestEmployeeCheckoutCompany = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/employee/checkoutCompany?companyNode=' + id,
  });
};
/**
 * 合同类型获取  	/erp/agreement/getAgreementType      get请求无参数
 */
export const RequestAgreementGetAgreementType = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/agreement/getAgreementType',
  });
};
/**
 * /erp/agreement/getAgreement?useLocation=合同
get请求参数useLocation
下载对应使用位置的协议
 */
export const RequestAgreementGetAgreementUseLocation = (useLocation) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/agreement/getAgreement?useLocation=' + useLocation,
  });
};
/**
 * erp/companies/getActiveCode   get请求    参数companyId
 */
export const RequestCompaniesGetActiveCode = (companyId) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/companies/getActiveCode?companyId=' + companyId,
  });
};
/**
 * erp/companies/getRefuseReason?companyId=0   get请求    参数companyId
 */
export const RequestCompaniesGetRefuseReason = (companyId) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/companies/getRefuseReason?companyId=' + companyId,
  });
};
/**
 * erp/scrapCar/monited     参数carId    get请求   是否已监销传monited bool型
 */
export const RequestScrapCarMonitedPass = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/scrapCar/monitedPass',
    data,
  });
};

/**
 * erp/scrapCar/monited     参数carId    get请求   是否已监销传monited bool型
 */
export const RequestScrapCarMonitedRefuse = (carId, rejectReason) => {
  return axiosInstance({
    method: 'get',
    url: `/erp/scrapCar/monitedRefuse?carId=${carId}&rejectReason=${rejectReason}`,
  });
};
/**
 * erp/scrapCar/monitedSetBack     参数carId    get请求   是否已监销传monited bool型
 */
export const RequestScrapCarMonitedSetBack = (carId) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/scrapCar/monitedSetBack?carId=' + carId,
  });
};
/**
 * erp/scrapCar/getCarStatus获取车辆状态     参数carId    get请求   是否已监销传monited bool型
 */
export const RequestScrapCarGetCarStatus = (carId) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/scrapCar/getCarStatus?carId=' + carId,
  });
};
// /**
//  *获取缺件扣款    /companies/getCompanyUnActivity   post
//  */
// export const RequestMissingPartDeduction = id => {
//   return axiosInstance({
//     method: 'get',
//     url: '/erp/missingPartDeduction/getByNode/' + id,
//   })
// }
/**
//  *添加缺件扣款    /companies/getCompanyUnActivity   post
//  */
// export const RequestMissingPartDeductionAdd = formdata => {
//   return axiosInstance({
//     method: 'post',
//     url: '/erp/missingPartDeduction/save',
//     data: formdata,
//   })
// }

/**
 *添加缺件扣款    /companies/getCompanyUnActivity   post
 */
export const RequestBankCode = (formdata) => {
  return axiosInstance({
    method: 'post',
    url: '/pay/bankCode/list',
    data: formdata,
  });
};
/**
 *公司权限回显    /companies/getfunction   post
 */
export const RequestCompaniesGetfunction = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/getfunction',
    data,
  });
};
/**
 *整车导出excle    http://192.168.1.41:9092/erp/scrapCar/outputExcel   post
 */
export const RequestScrapCarOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/scrapCar/outputExcel',
    data,
    responseType: 'blob',
  });
};

/**
 *整车导出excle    http://192.168.1.41:9092/erp/scrapCar/outputExcelMonited   post
 */
export const RequestScrapCaroutputExcelMonited = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/scrapCar/outputExcelMonited',
    data,
    responseType: 'blob',
  });
};
/**
 *危固废导出excle    http://192.168.1.41:9092/cyr/store/wasteStatistic/outputExcel   post
 */
export const RequestWasteStatisticOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/wasteStatistic/outputExcel',
    data,
    responseType: 'blob',
  });
};
/**
 *原材料导出excle    http://192.168.1.41:9092/cyr/store/materialStatistic/outputExcel   post
 */
export const RequestMaterialStatisticOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/materialStatistic/outputExcel',
    data,
    responseType: 'blob',
  });
};
/**
 *非溯源件导出excle   http://192.168.1.41:9092/cyr/store/partsStatistic/outputExcel   post
 */
export const RequestPartsStatisticOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/partsStatistic/outputExcel',
    data,
    responseType: 'blob',
  });
};
/**
 *溯源件导出excle   http://192.168.1.41:9092/cyr/store/fittings/outputExcel   post
 */
export const RequestFittingsOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/fittings/outputExcel',
    data,
    responseType: 'blob',
  });
};
/**
 *入库记录导出excle   http://192.168.1.41:9092/cyr/store/inbound/outputExcel   post
 */
export const RequestInboundOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/inbound/outputExcel',
    data,
    responseType: 'blob',
  });
};
/**
 *出库记录导出excle   http://192.168.1.41:9092/cyr/store/outbound/outputExcel   post
 */
export const RequestOutboundOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/store/outbound/outputExcel',
    data,
    responseType: 'blob',
  });
};
/**
 *业务员数据导出excle   http://192.168.1.41:9092/cyr/trail/settle/outputExcel   post
 */
export const RequestSettleOutputExcel = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/trail/settle/outputExcel',
    data,
    responseType: 'blob',
  });
};
/**
 *定价列表---添加保存   erp/pricingList/save   post
 */
export const RequestPricingListSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/pricingList/save',
    data,
  });
};
/**
 *定价列表---添加保存   erp/pricingList/getlistlimit   post
 */
export const RequestPricingListGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/pricingList/getlistlimit',
    data,
  });
};
/**
 *定价列表---废弃   /pricingList/obsolescent/{id}   post
 */
export const RequestPricingListObsolescent = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/pricingList/obsolescent/' + id,
  });
};
/**
 *商家须知---添加   /notification/save   post
 */
export const RequestNotificationSave = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/notification/save',
    data,
  });
};
/**
 *商家须知---添加   /notification/getlistlimit   post
 */
export const RequestNotificationGetlistlimit = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/notification/getlistlimit',
    data,
  });
};
/**
 *商家须知---查看   /notification/{id}   post
 */
export const RequestNotificationId = (id) => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/notification/' + id,
  });
};
/**
 *汽修厂认证---列表获取   //maintenanceShop/getlistlimit   post
 */
export const RequestMaintenanceShopGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/maintenanceShop/getlistlimit',
    data,
  });
};
/**
 *汽修厂认证--- 查看   /maintenanceShop/findById/   post
 */
export const RequestMaintenanceShopFindById = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/maintenanceShop/findById/' + id,
  });
};
/**
 *汽修厂认证--- 审核同意   /maintenanceShop/FactoryAudit  post id  adminId  auditResult  rejectReason
 */
export const RequestMaintenanceShopFactoryAudit = (id, adminId, auditResult) => {
  return axiosInstance({
    method: 'get',
    url: `/shoppingmall/maintenanceShop/FactoryAudit?id=${id}&adminId=${adminId}&auditResult=${auditResult}`,
  });
};
/**
 *汽修厂认证--- 审核拒绝   /maintenanceShop/FactoryAudit  post id  adminId  auditResult  rejectReason
 */
export const RequestMaintenanceShopFactoryAuditReject = (id, adminId, auditResult, rejectReason) => {
  return axiosInstance({
    method: 'get',
    url: `/shoppingmall/maintenanceShop/FactoryAudit?id=${id}&adminId=${adminId}&auditResult=${auditResult}&rejectReason=${rejectReason}`,
  });
};
/**
 *汽修厂认证--- 审核拒绝  /maintenanceShop/getAuditLog/{id}`
 */
export const RequestMaintenanceShopGetAuditLog = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/maintenanceShop/getAuditLog/' + id,
  });
};
/*
 *检查是否通知--- erp/checkNotice
 */
export const RequestCheckNotice = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/checkNotice',
  });
};
/*
 *通知内容--- /notification/list
 */
export const RequestNotificationList = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/notification/list',
  });
};
/*
 *定价修改确认--- /pricingList/pricingChangeCheck?id=get请求
 */
export const RequestPricingListPricingChangeCheck = (id) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/pricingList/pricingChangeCheck?id=' + id,
  });
};
/*
 *停用的公司恢复使用接口--- /erp/companies/companyRestart
 *参数id 必传 contract 合同（文件数组）非必传
 *post请求
 */
export const RequestCompaniesCompanyRestart = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/companyRestart',
    data,
  });
};
/*
 *广告位管理---  /advertisement/save
 */
export const Requestadvertisementsave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/advertisement/save',
    data,
  });
};
/*
 *广告位图片转地址--  /advertisement/save
 */
export const RequestUploadPlatFormImgs = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/test/uploadPlatFormImgs',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json', // 添加请求头属性
    },
    data,
  });
};
/*
 *商铺列表---  /shop/pageList
 */
export const RequestShopPageList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/pageList',
    data,
  });
};
/*
 *商铺列表---  /shop/pageList
 */
export const RequestPageListByType = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/shop/pageListByType',
    data,
  });
};
/*
 *广告位列表数据---  /advertisement/getPageList
 */
export const RequestAdvertisementGetPageList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/advertisement/getPageList',
    data,
  });
};
/*
 *广告位删除---  /advertisement/deleteList
 */
export const RequestAdvertisementaDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/advertisement/deleteList',
    data,
  });
};
/*
 *消息滚动通知内容---  http://192.168.1.42:9092/cyr/shoppingmall/shopMessage/getLatestMessage
 */
export const RequestShopMessageGetLatestMessage = () => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/shopMessage/getLatestMessage',
  });
};
/**
 * 配件添加  /shoppingmall/carModel/createCarModelInfo
 */
export const RequestCarModelCreateCarModelInfo = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/carModel/createCarModelInfo',
    data,
  });
};
/**
 * 试用等级查询列表  http://192.168.1.41:9092/cyr/erp/tryLevel/getlistlimit
 */
export const RequestTryLevelGetlistlimit = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/tryLevel/getlistlimit',
    data,
  });
};
/**
 * 试用等级查询列表  http://192.168.1.41:9092/cyr/erp/tryLevel/save
 */
export const RequestTryLevelSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/tryLevel/save',
    data,
  });
};
/**
 * 试用等级删除  http://192.168.1.41:9092/cyr/erp/tryLevel/deleteList
 */
export const RequestTryLevelDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/tryLevel/deleteList',
    data,
  });
};
/**
 * 根据档次名获取档次详情  http://192.168.1.41:9092/cyr/erp/tryLevel/getDetailByLevelName?levelName=基础设置
 */
export const RequestTryLevelGetDetailByLevelName = (name) => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/tryLevel/getDetailByLevelName?levelName=' + name,
  });
};
/**
 * 根据档次名获取档次详情  http://192.168.1.41:9092/cyr/erp/tryCompany/getHistory?companyNode=1621
 */
export const RequestTryCompanyGetHistory = (node) => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/tryCompany/getHistory?companyNode=' + node,
  });
};
/**
 * 试用等级查询列表 http://192.168.1.41:9092/cyr/erp/tryLevel/list
 */
export const RequestTryLevelList = () => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/tryLevel/list',
  });
};
/**
 * 修改试用公司的有效时间 http://192.168.1.41:9092/cyr/erp/tryCompany/resetTryCompanyValidity
 */
export const RequestTryCompanyResetTryCompanyValidity = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/tryCompany/resetTryCompanyValidity',
    data,
  });
};
/******************************积分管理**********************************/

/**
 * 积分兑换管理分页
 */
export const RequestPointList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/integralFlow/getPageList',
    data,
  });
};
/**
 * 批量删除
 */
export const RequestPoinDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/integralFlow/deleteList',
    data,
  });
};

/******************************积分发放**********************************/
/*
 *积分发放查询分页
 */
export const RequestPointPrivideList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/integral/getPageList',
    data,
  });
};
/**
 *批量删除
 */
export const RequestPointDeleteList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/integral/deleteList',
    data,
  });
};
/**
 * 新增发放规则
 */
export const RequestPointAddSave = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/shoppingmall/integral/save',
    data,
  });
};

export const RequestPointSingleData = (id) => {
  return axiosInstance({
    method: 'get',
    url: `/shoppingmall/integral/${id}`,
  });
};
export const RequestVehicleInput = (data) => {
  return axiosInstance({
    method: 'post',
    url: `/erp/scrapCar/scrapCarFixDetail`,
    data,
  });
};
/******************************拆解厂充值**********************************/
// /erp/companies/rechargeBalance
export const RequestPayAccountRechargeBalance = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/rechargeBalance',
    data,
  });
};
//拆解厂余额     /erp/companies/getBalance
export const RequestCompaniesGetBalance = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/companies/getBalance',
  });
};

//拆解厂余额数据     /erp/companies/getBalance
export const RequestBalanceData = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/companies/getRechargeInfoAndDisRate',
  });
};
//拆解厂余额    /pay/bankCode/list
export const RequestBankCodeList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/pay/bankCode/list',
    data,
  });
};
//拆解厂余额提现    /erp/companies/withdraw
export const RequestCompaniesWithdraw = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/companies/withdraw',
    data,
  });
};
//拆解厂银行卡    /erp/companies/getBankCardInfo
export const RequestCompaniesGetBankCardInfo = () => {
  return axiosInstance({
    method: 'get',
    url: '/erp/companies/getBankCardInfo',
  });
};

/******************************************  客服管理  ******************************************/

/**
 * 获取员工列表 /erp/customServiceSetting/getEmpList        GET
 */
export const RequestCustomServiceSettingEmpList = (data) => {
  return axiosInstance({
    method: 'get',
    url: '/erp/customServiceSetting/getEmpList',
  });
};
/**
 * 获取客服列表 /erp/customServiceSetting/getPageList        post
 */
export const RequestCustomServiceSettingPageList = (data) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/customServiceSetting/getPageList',
    data,
  });
};
/**
 * 添加客服 /erp/customServiceSetting/save        POST
 */
export const RequestCustomServiceSettingSave = (data) => {
  return axiosInstance({
    method: 'POST',
    url: '/erp/customServiceSetting/save ',
    data,
  });
};
/**
 * 批量删除客服 /erp/customServiceSetting/save        POST
 */
export const RequestCustomServiceSettingDeleteList = (ids) => {
  return axiosInstance({
    method: 'post',
    url: '/erp/customServiceSetting/deleteList?ids=' + ids,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};
/**
 * 修改客服在线状态 /erp/customServiceSetting/save        GET
 */
export const RequestCustomServiceSettingUpdateStatus = (id) => {
  return axiosInstance({
    method: 'GET',
    url: '/erp/customServiceSetting/updateStatus/' + id,
    headers: {
      'Content-Type': 'application/json',
    },
  });
};

export const RequestCodeDeployGetProcessDefineInfo = (processId) => {
  return axiosInstance({
    method: 'get',
    url: 'activiti/CodeDeploy/getProcessDefineInfo?processId=' + processId,
  });
};

// http://{{url}}/erp/statistic/getRecycleCarTotalInfo
export const RequestStatisticGetRecycleCarTotalInfo = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/statistic/getRecycleCarTotalInfo',
    data,
  });
};
// http://{{url}}/erp/statistic/getRecycleCarStatistic
export const RequestStatisticGetRecycleCarStatistic = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/statistic/getRecycleCarStatistic',
    data,
  });
};
//http://{{url}}/erp/statistic/getCompanyRecycleDetail
export const RequestStatisticgetCompanyRecycleDetail = (data) => {
  return axiosInstance({
    method: 'post',
    url: 'erp/statistic/getCompanyRecycleDetail',
    data,
  });
};
/**
 *
 * 团队奖确认结算
 */
//http://{{url}}/erp/statistic/getCompanyRecycleDetail
export const RequesTextractToLeftMoney = (ids) => {
  return axiosInstance({
    method: 'get',
    url: '/shoppingmall/dividendLog/extractToLeftMoney?ids=' + ids,
  });
};
